import Navbar from '@/components/Navbar';
import './globals.css';
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';

const inter = Inter({ subsets: ['latin'] });

export const metadata: Metadata = {
  title: '王者荣耀数据分析站',
  description: '提供王者荣耀英雄资料、装备信息、阵容搭配建议、出装推荐和打法思路',
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="zh-CN">
      <body className={inter.className}>
        <Navbar />
        <main className="container mx-auto px-4 py-8">
          {children}
        </main>
        <footer className="bg-gray-800 text-white p-6">
          <div className="container mx-auto">
            <p className="text-center">© 2025 王者荣耀数据分析站 - 仅供学习交流使用</p>
          </div>
        </footer>
      </body>
    </html>
  );
}
